package rhc.spider.middleware.dowanloadMiddleware;

import rhc.spider.common.SpiderData;
import rhc.spider.middleware.Middleware;
import rhc.spider.request.Request;
import rhc.spider.request.Response;
import rhc.spider.spider.Spider;

/**下载器中间件
 * @author lenovo1
 *
 */
public interface DownloadMiddleware extends Middleware{

	SpiderData processRequest(Spider spider,Request reqeust);
	
	SpiderData processResponse(Spider spider,Request request,Response response);
	
	SpiderData processException(Spider spider,Request request,Exception exception);
	
}
